/* 
 * StikiWeb Wiki - a Wiki for Hierarchical Organizations
 * $Id: PageBean.java,v 1.2 2004/03/20 14:37:42 biglee Exp $
 * 
 * ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is the StikiWeb Wiki 
 *
 * The Initial Developer of the Original Code is Lee Haslup (biglee@haslups.com).
 * Portions created by the Initial Developer are Copyright (C) 2004
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * ***** END LICENSE BLOCK ***** 
 */
package org.stikiweb.struts;

import org.apache.struts.action.ActionForm;

/**
 * @author Allen L (BigLee) Haslup
 *
 */
public class PageBean extends ActionForm {

/**
	 * 
	 */
	private static final long serialVersionUID = 6113170744741697271L;

protected String operation; // one of "VIEW","COMMENT","AUDIT","EDIT" default "VIEW"

protected String name;	// name of the page being worked on

protected String text;  // translated (html) text of the page

protected String newMarkup;  // untranslated (wiki) text of either the page or a comment

protected String cancel;  // non-empty if user pressed cancel

protected String preview;  // non-empty if user pressed preview

protected String save;  // non-empty if user pressed save

protected String edit; // non-empty if user pressed edit

protected String audit; // non-empty of user pressed audit

protected String comment; // non-empty if user pressed comment


/**
 * @return
 */
public String getName() {
	return name;
}

/**
 * @return
 */
public String getText() {
	return text;
}

/**
 * @param string
 */
public void setName(String string) {
	name = string;
}

/**
 * @param string
 */
public void setText(String string) {
	text = string;
}

/**
 * @return
 */
public String getNewMarkup() {
	return newMarkup;
}


/**
 * @param string
 */
public void setNewMarkup(String string) {
	newMarkup = string;
}



/**
 * @return
 */
public String getCancel() {
	return cancel;
}

/**
 * @return
 */
public String getPreview() {
	return preview;
}

/**
 * @return
 */
public String getSave() {
	return save;
}

/**
 * @param string
 */
public void setCancel(String string) {
	cancel = string;
}

/**
 * @param string
 */
public void setPreview(String string) {
	preview = string;
}

/**
 * @param string
 */
public void setSave(String string) {
	save = string;
}

/**
 * @return
 */
public String getAudit() {
	return audit;
}

/**
 * @return
 */
public String getComment() {
	return comment;
}

/**
 * @return
 */
public String getEdit() {
	return edit;
}

/**
 * @param string
 */
public void setAudit(String string) {
	audit = string;
}

/**
 * @param string
 */
public void setComment(String string) {
	comment = string;
}

/**
 * @param string
 */
public void setEdit(String string) {
	edit = string;
}

/**
 * @return
 */
public String getOperation() {
	return operation;
}

/**
 * @param string
 */
public void setOperation(String string) {
	operation = string;
}

}
